﻿using System;
using System.ServiceModel.Configuration;
using System.Web;

namespace GlimpseWcf.Client
{
    public class WcfEndpointBehaviorConfigurationExtension : BehaviorExtensionElement 
    {
        public override Type BehaviorType
        {
            get { return typeof(WcfEndpointBehavior); }
        }

        protected override object CreateBehavior()
        {
            return new WcfEndpointBehavior(new HttpContextWrapper(HttpContext.Current));
        }
    }
}
